#include"heap.h"
int main()
{
	int a[] = { 70,65,100,32,50,60 };	
	Hp hp;
	heapInit(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		heapPush(&hp, a[i]);
	}
	heapPrint(&hp);
	printf("\n");
	int k = 5;
	while (!heapEmpty(&hp)&&k--)
	{
		printf("%d ", heapTop(&hp));
		heapPop(&hp);
	}
	heapDestroy(&hp);
	return 0;
}